<include file="Public:head" title="工时列表"/>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('Hours/lists')}">工时管理</a></li>
                    <li class="active">工时列表</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="header smaller lighter blue">
                                    <div class="nav-search col-xs-10" id="nav-search">
                                        <form class="form-search" method="get">
                                            <div class="search_area">
                                                <input class="form-control search-query" type="text" name="keyword" autocomplete="off"  placeholder="请输入工时内容" value="{$Think.get.keyword}">
                                                <input type='hidden' name='p' value='0'>
                                                <button class="btn btn-purple btn-sm" type="submit">搜 索 <i class="icon_search icon-on-right bigger-110"></i></button>
                                            </div>
                                        </form>
                                    </div>
                                    <div class='cl'></div>
                                </div>
                                <notempty name='lists'>
                                    <div class="table-responsive">
                                        <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                            <thead>
                                                <tr>
                                                    <th width='45px' class="center">ID</th>
                                                    <th>用户</th>
                                                    <th>工作内容</th>
                                                    <th>工时</th>
                                                    <th>日期</th>
                                                    <th>添加时间</th>
                                                    <th>审核状态</th>
                                                    <th>审核时间</th>
                                                    <th width="65px">操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="lists" item="row">
                                                <tr>
                                                    <td class="center">{$row.id}</td>
                                                  
                                                       <td  style="width:130px">{$row.uid|getUserName}</td>
                                                   <td style="text-align: left">{$row.content|htmlspecialchars_decode}</td>
                                                    <td  style="width:130px">{$row.hour}</td>
                                                    <td  style="width:130px">{$row.workdate}</td>
                                                    <td style="width:230px">{$row.addtime|date="Y-m-d H:i:s",###}</td>
                                                    <td  style="width:130px"><if condition="$row.status eq 0">待审核<elseif condition="$row.status eq 1"/><span class="green">审核通过</span><else/><span class="red">审核不通过</span> {$row.check_info}</if></td>
                                                <td style="width:230px"><if condition="$row.check_time gt 0">{$row.check_time|date="Y-m-d H:i:s",###}</if></td>

                                                <td class="action-buttons">
                                                <if condition="$row.status eq 0">
                                                    <a class="green" href="{:U('Hours/check_detail',array('id'=>$row['id']))}" data-rel="tooltip" data-original-title="审核"><i class="icon-pencil bigger-130"></i></a>

                                                </if>
                                                </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                        </table>

                                    </div>
                                    <div id="grid-pager" class="ui-state-default  ui-corner-bottom" dir="ltr">
                                        <table width='100%' data-table='hours'  id='modal_del_table'>
                                            <tr>
                                                <td>
                                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">

                                                    </div>
                                                </td>
                                                <td class='td_pager'><div class='pager'>{$page}</div></td>
                                            </tr>
                                        </table>
                                    </div>
                                    <else/>

                                </notempty>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
<include file="Public:del" />
<include file="Public:foot" />